package tech.dongliang.system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import tech.dongliang.common.model.Tree;
import tech.dongliang.system.model.SysMenu;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xdzhang
 * @since 2019-01-18
 */
public interface ISysMenuService extends IService<SysMenu> {
    List<SysMenu> list(QueryWrapper<SysMenu> queryWrapper) throws Exception;

    Tree<SysMenu> getTree() throws Exception;


    Tree<SysMenu> getTree(Integer id) throws Exception;

    int childCount(Integer deptId) throws Exception;

    Set<String> listPerms(Integer userId) throws Exception;
}
